#include "gui/layers/RouteLayer.h"
#include "gui/objects/GUIRoute.h"

namespace gui {

RouteLayer::RouteLayer(RouteController* routeController) {
	this->routeController = routeController;
	this->routeController->addObserver(this);
	GUIRoute guiRoute(this->routeController);
	this->updateSurface(guiRoute);
}

RouteLayer::~RouteLayer() {

}

void RouteLayer::notify() {
	GUIRoute guiRoute(this->routeController);
	this->updateSurface(guiRoute);
}

}
